﻿using DT.Core.Managers;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace DT.Application.Api
{
    /// <summary>
    /// API DEMO 
    /// </summary>
    [AppAuthorize, ApiDescriptionSettings("DEMO列表")]
    public class DemoApiService : IDynamicApiController
    {
        /// <summary>
        /// 测试API Demo
        /// </summary>
        /// <returns></returns>
        /// //自定义过滤器"自定义资源ID"
        [SecurityDefine(CoreSecurityAttribute.ViewRoles)]
        public string GetDemo()
        {
            return "hello world";
        }
    }
}
